<template>
  <!-- 终端头部 -->
  <div class="terminal-header">
    <div class="window-controls">
      <div class="control-btn close"></div>
      <div class="control-btn minimize"></div>
      <div class="control-btn maximize"></div>
    </div>
    <div class="terminal-info">
      {{ shellInfo }}
    </div>
  </div>
</template>

<script setup lang="ts">
defineProps<{
  shellInfo: string
}>()
</script>

<style lang="scss" scoped>
.terminal-header {
  background-color: #333333;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #555555;

  .window-controls {
    display: flex;
    gap: 8px;
    margin-right: 16px;
    .control-btn {
      width: 12px;
      height: 12px;
      border-radius: 50%;
    }

    .close {
      background-color: #ff5f58;
    }

    .minimize {
      background-color: #ffbd2e;
    }

    .maximize {
      background-color: #18c137;
    }
  }

  .terminal-info {
    color: #cccccc;
    font-size: 12px;
  }
}
</style>
